<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../bootstrap-5.1.3-dist/css/bootstrap.css">
    <script src="../bootstrap-5.1.3-dist/js/bootstrap.js"></script>
</head>

<body class="container">
    <h3 align="center">文本换行效果</h3>
    <div class="border border-primary mb-5" style="width: 15rem;">
        宝马雕车香满路，凤箫声动，玉壶光转，一夜鱼龙舞。
    </div>
    <h4 align="center">阻止文本换行</h4>
    <div class="text-nowrap border border-primary" style="width: 15rem;">
        雨打梨花深闭门。忘了青春，误了青春。赏心乐事共谁论。
    </div>
</body>

</html>